package com.qf.cx.simplenms.webservice;

import com.qf.cx.simplenms.link.rai.*;
import io.vertx.core.AbstractVerticle;
import org.apache.log4j.Logger;

public class HeartBeat extends AbstractVerticle {
    private static Logger logger = Logger.getLogger(Monitor.class);
    @Override
    public void start() {
        vertx.setPeriodic(1000,l->{
            vertx.eventBus().publish("KeepAliveSubject","HeartBeat");
            logger.debug("发出心跳");
        });
    }
}